package mqpaydemo.paydemo.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description:消息接收
 * @Author: liujinsheng
 * @Date: 2021/9/10.
 */
@Component
public class Reciever {
    @RabbitHandler
    @RabbitListener(queues = "testQuequ")
    public void reciciver(Map msg){
        System.out.println("接收到的消息"+msg);

    }
}
